using System;
using System.Globalization;
using System.Windows.Data;
using CPlatePrintSys.Domain.Models;

namespace CPlatePrintSys.Win.Converters
{
    public class LayoutMeanToStringConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is LayoutMean mean)
            {
                switch (mean)
                {
                    case LayoutMean.Unprocessed: return "未处理";
                    case LayoutMean.MirrorLayout: return "镜像";
                    case LayoutMean.MergedLayout: return "合并";
                }
            }
            return "未知";
        }
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}